<%--
  Created by IntelliJ IDEA.
  User: 31921
  Date: 2024/12/16
  Time: 22:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>编辑用户</title>
    </head>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .header {
            background-color: #4cafa7;
            color: white;
            padding: 15px;
            text-align: center;
        }
        .container {
            padding: 20px;
            max-width: 600px;
            margin: 0 auto;
            background-color: white;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }
        h2 {
            text-align: center;
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        input[type="text"], input[type="email"], input[type="number"], input[type="tel"], select {
            width: 100%;
            padding: 10px;
            margin: 5px 0;
            border-radius: 4px;
            border: 1px solid #ddd;
        }
        .button {
            background-color: #afaa4c;
            color: white;
            padding: 10px 15px;
            text-decoration: none;
            border-radius: 4px;
            width: 100%;
            display: inline-block;
            text-align: center;
        }
        .button:hover {
            background-color: #a06045;
        }
    </style>
    <body>
        <div class="header">
            <h1>编辑用户</h1>
        </div>
        <div class="container">
            <a href="userManagement" class="button">返回上一级</a>
            <form action="updateUser" method="POST">
                <input type="hidden" name="id" value="<%= request.getAttribute("id") %>" />

                <div class="form-group">
                    <label for="username">用户名</label>
                    <input type="text" id="username" name="username" value="<%= request.getAttribute("username")%>" readonly />
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="text" id="password" name="password" value="<%= request.getAttribute("password")%>" readonly />
                </div>
                <div class="form-group">
                    <label for="email">邮箱</label>
                    <input type="email" id="email" name="email" value="<%= request.getAttribute("email")%>" required />
                </div>
                <button type="submit" class="button">提交修改</button>
            </form>
        </div>

    </body>
</html>
